<?php
class Live_view extends MY_Front_Controller {

	function __construct() {
		parent::__construct();
		$this->load->model('live_view_model');
	}
	
	public function get(){
		$data = array();
		
		$data['live_products'] = $this->live_view_model->getLiveProduct(array('language_id' => $this->config->item('lang_obj')->id, 'limit' => '10'))->result();
				
		$this->template->add_js('application/assets/js/jqueryPlugins/jquery.pajinate.min.js');
		$this->template->add_js('application/assets/js/live_view.js');
		$this->template->write('pageTitle', lang('live_view',false));
		$this->template->write_view('content','front/live_view.php',$data);
		$this->template->render();
	}
}